<?php
use think\facade\Route;

Route::rule('/msg', function(){return "请先登入，并使用rule方法提交UUID";});

//门户首页
Route::group('/', function(){
        Route::rule('', 'Index/index');
        Route::rule('index', 'Index/index');
    }
);

//用户相关
Route::group('/user', function(){
        Route::rule('', 'User/index');
        Route::rule('index', 'User/index');
        Route::rule('account', 'User/account');
        Route::rule('project', 'User/project');
    }
)->middleware(app\v\middleware\Identity::class);//登入验证

//用户登入
Route::rule('/user/login', 'User/login');
//用户注册
Route::rule('/user/register', 'User/register');

//商店
Route::rule('/store/index', 'Store/index');
//项目
Route::rule('/store/project', 'Store/project');